/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package strategy;

import java.util.Random;
import java.util.Vector;

/**
 *
 * @author loki
 */
public class Database {

    protected static void generateContent(int amount, Vector<Single> people, boolean isAGuy) {
        String[] femaleNames = {"Gwen", "Kate", "Nelly", "Annie",
            "Sheena", "Olivia", "Helen", "Lily", "Rihanna", "Wilson",
            "LeAnn", "Missy", "Karen", "Cyndi", "Shania", "Alecia",
            "Shakira", "Britney", "Avril", "Janet", "Kylie", "Madonna"};
        String[] maleNames = {"Michael", "Freddy", "Elvis", "John", "Paul",
            "Enrique", "Bryan", "Jon", "George", "Phil", "Stevie",
            "Justin", "Robert", "James", "Johnny", "Marvin", "Bob",
            "Mick", "Jim", "Bruce", "Kurt", "Anthony"};
        String[] lastNames = {"Stefani", "Tunstall", "Furtado", "Lennox",
            "Easton", "Newton", "Reddy", "Allen", "Fenty", "Philips",
            "Rimes", "Elliott", "Carpenter", "Lauper", "Twain", "Moore",
            "Ripoll", "Spears", "Lavigne", "Jackson", "Minogue", "Ciccone",
            "Mercury", "Presley", "Lennon", "McCartney",
            "Iglesias", "Adams", "Bon Jovi", "Michael", "Collins", "Wonder",
            "Timberlake", "Kelly", "Hetfield", "Cash", "Gaye", "Marley",
            "Jagger", "Morrison", "Dickinson", "Cobain", "Kiedis"};
        String[] cities = {"Ankara", "Moscow", "London", "Rome", "Berlin", "Madrid",
            "Budapest", "Warsaw", "Vienna", "Oslo", "Reykjavik", "Amsterdam",
            "Stockholm", "Helsinki", "Dublin", "Paris", "Copenhagen",
            "Lisbon", "Berne", "Athens", "Brussels"};
        Random r = new Random();
        String[] names = isAGuy ? maleNames : femaleNames;
        for (int i = 0; i < amount; i++) {
            people.add(new Single(names[r.nextInt(names.length)],
                    lastNames[r.nextInt(lastNames.length)],
                    cities[r.nextInt(cities.length)],
                    18 + r.nextInt(35), // age
                    1.50 + r.nextDouble() * 0.50, // height
                    55 + r.nextDouble() * 45, // weight
                    r.nextBoolean(), // smoker
                    r.nextBoolean())); // has pets
        }
    }
}
